﻿using MRSite.Cache;
using MRSite.Cache.Entities;
using MRSite.Common.Dependency;
using MRSite.DataAccess;
using MRSite.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    public class BiChangeLogCache
    : EntityCache<BiChangeLog, BiChangeLogDto, CustomContext>, IBiChangeLogCache, ITransient
    {
        public BiChangeLogCache(
            ICacheManager cacheManager,
            CustomContext dataContext,
            IDbContextResolve dbContextResolve,
            string cacheName = null)
            : base(cacheManager, dataContext, cacheName)
        {
            this.DataContext = dbContextResolve.Resolver<CustomContext>("Read");
        }
    }
}
